import { Next, Ctx } from "src/types";


export default async function getRequestIp(ctx: Ctx, next: Next) {

  const ip = ctx.ip.split('::ffff:');

  ctx.body = ctx.success({
    ip: ip[1]
  });
}